package com.wq.wrongquestion.mapper.geo;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.wq.wrongquestion.entity.geo.GeographyEntity;

/**
 * 地理
 */

@Mapper
public interface GeographyMapper {
      
    @Select("select zjnm from m_geographyzj where zjid=#{zjID}")
    public String getGeographyZjnm(String zjID);
    

    @Select("select zjID from m_geographyzj")
    public List<String>  getGeographyZjID();
    /**
     * 获取所有章节
     * @return
     */

    public List<String>  getGeographyZj();

    public List<GeographyEntity> getGeography(GeographyEntity geographyEntity);


    public List<GeographyEntity> getGeographyByID(Integer id);
    /**
     * 插入错题 
     */

    public void insGeography(GeographyEntity geographyEntity);
    /**
     * 更新错题
     * @param geographyEntity
     */
    public Integer updGeography(GeographyEntity geographyEntity);
    /**
     * 删除错题
     * 
     */
    public Integer delGeography(Integer id); 
}
